import {
  mitt,
  type Emitter,
  type EventType,
} from '@/library/libs/mitt'

export function emitter<Events extends Record<EventType, unknown>>(): Emitter<Events> {
  return mitt<Events>()
}
